Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: XPages Javascript - Getting the current database
Feedback Type: Problem
Product Area: Database
Technical Area: Customization
Platform: Windows
Release: 8.5.1
Reproducible: Always

Hi,

This may be a strange/simple/silly question, but how do you get the current database when working with Server Side Javascript?

I am currently getting the database using :

//var database = session.getDatabase(session.getServerName(), "glaapp\\TLRS.nsf")
var database = session.getDatabase(session.getServerName(), "Dev\\TLRS.nsf")

As you can see, I have had to comment out the live database when working in dev and when i make the db live, i need to remember to change this back or distaster strikes!

Really appreciate some guidance. I have tried the 8.5.1 help, but i find it quite poor compared to 6.5 etc (not as many examples etc)

Thanks

Jamie


Feedback number WEBB85TGKD created by ~Dexter Fezhipimanetsi on 05/26/2010

Status: Open
Comments:

XPages Javascript - Getting the cur... (~Dexter Fezhipi... 26.May.10)
. . I believe "database" is a global SS... (~James Brewever... 26.May.10)
. . . . Great! (~Dexter Fezhipi... 28.May.10)
. . . . . . Glad I can also be a positive influ... (~James Brewever... 28.May.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS